﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Presentation>" %>
<%@ Import Namespace="MarkdownSharp"%>
<%@ Import Namespace="MvcPresenter.Models"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title><% =Model.Name%></title>
    <link rel="stylesheet" href="<% = Url.Content("~/content/viewer.css")%>" type="text/css" media="all" />
    <% foreach (var css in Model.StyleSheets) { %>
    <link rel="stylesheet" href="<% =ResolveUrl("~/Resources/" + Model.Name + "/" + css.FileName)%>" type="text/css" media="all" /><% } %>
</head>
<body>
    <ul class="presenter">
		<% foreach (var markup in Model.Markups) { %>
		<li class="slide">
			<div class="markdown"><%=new Markdown().Transform(markup.Text)%></div>
		</li><% } %>
    </ul>
</body>
<script type="text/javascript" src="<% =Url.Content("~/Scripts/jquery-1.4.1.min.js")%>"></script>
<script type="text/javascript" src="<% =Url.Content("~/Scripts/mvcpresenter.js")%>"></script>
</html>
